Skip to content

fix - critical error when destructuring widget props#25

Merged
Jhvictor4 merged 2 commits intomainfrom
fix/fix-use-widget-props
Nov 13, 2025
Merged

fix - critical error when destructuring widget props#25
Jhvictor4 merged 2 commits intomainfrom
fix/fix-use-widget-props

Conversation

@Jhvictor4
Copy link
Copy Markdown
Contributor

It seems that widgets using useWidgetProps() had not been rendered properly, since the app expects the method to return the return value of the execute function of Python MCP server's widget, while it actually just returns window.openai.toolOutput which wraps out the result of execute function, including the value as window.openai.toolOutput.structuredContent.

It seems that the npm registry might be properly fixed, but in advance, destructuring useWidgetProps output seems okay for now.

@Jhvictor4 Jhvictor4 force-pushed the fix/fix-use-widget-props branch from d3857d3 to 31d66fe Compare November 13, 2025 10:22
@Jhvictor4 Jhvictor4 merged commit 7010008 into main Nov 13, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant